<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改员工薪资应发项目')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-allowance-edit" th:object="${sysAllowance}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">餐费补贴：</label>
                <div class="col-sm-8">
                    <input name="mealAllowance" th:field="*{mealAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">交通补贴：</label>
                <div class="col-sm-8">
                    <input name="transportationAllowance" th:field="*{transportationAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">通讯补贴：</label>
                <div class="col-sm-8">
                    <input name="conmunictaionAllowance" th:field="*{conmunictaionAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">管理岗位补贴：</label>
                <div class="col-sm-8">
                    <input name="managementPostAllowance" th:field="*{managementPostAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">技术岗位补贴：</label>
                <div class="col-sm-8">
                    <input name="technologyPsotAllowance" th:field="*{technologyPsotAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">外派津贴：</label>
                <div class="col-sm-8">
                    <input name="expatriateAllowance" th:field="*{expatriateAllowance}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">用户编号：</label>
                <div class="col-sm-8">
                    <input name="userId" th:field="*{userId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <!--<label class="col-sm-3 control-label">租户编号：</label>-->
                <div class="col-sm-8">
                    <input name="tenantId" th:field="*{tenantId}" class="form-control" type="hidden">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/allowance";
        $("#form-allowance-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-allowance-edit').serialize());
            }
        }
    </script>
</body>
</html>